﻿using System.Configuration;
using System.Web;

namespace PCTInterface.Common
{
    public class Constant
    {
        public const string LANGUAGE_CN = "CN";
        public const string LANGUAGE_EN = "EN";
        public const string LANGUAGE_EXT1 = "TW";
        public const string LANGUAGE_EXT2 = "TW";

        public static string DEFAULT_DB = ConfigurationManager.AppSettings["DEFAULT_DB_NAME"];
        public static string PROFILE_DB = ConfigurationManager.AppSettings["PROFILE_DB"];
        public static string USER_DB = ConfigurationManager.AppSettings["USER_DB"];
        public static string INTERFACE_DB = ConfigurationManager.AppSettings["INTERFACE_DB"];
        public static string REPORT_DB = ConfigurationManager.AppSettings["REPORT_DB"];
        public static string HOSPITAL_DB = ConfigurationManager.AppSettings["HOSPITAL_DB"];
        public static string GLOBAL_DB = ConfigurationManager.AppSettings["GLOBAL_DB"];
        public static string SERVICE_DB = ConfigurationManager.AppSettings["SERVICE_DB"];
        public static string STOCK_DB = ConfigurationManager.AppSettings["STOCK_DB"];

        public static string WEB_SERVICE = ConfigurationManager.AppSettings["WEB_SERVICE"];
        public static string WEB_SERVICE_QUERY_FUNCTION = "Query";
        public static string WEB_SERVICE_EXCUTE_FUNCTION = "Excute";

        public static string SERVICE = "SERVICE";

        public static string DB_NAME = "DB_NAME";
        public static string TB_NAME = "TB_NAME";
        public static string OP_NAME = "m";
        public static string SP_NAME = "SP_NAME";
        public static string CACHE_CODE = "cache_code";

        public const string CONST_DETAL = "MaloclinicsDental";
        public static string CONST_LANG = "IVBABY_LANGUAGE:" + HttpContext.Current.Request.Url.Port;

        public const string CACHE_UPDT_VERSION = "UPDT_VERSION";
        public const string CACHE_MULTILANGUAGE = "MULTILANGUAGE";
        /// <summary>
        /// 默认日期格式
        /// </summary>
        public const string CONST_DATE_FORMAT = "yyyy-MM-dd";

        public const string CONST_SESSION_USER = "EHUSER";
        public const string CONST_SESSION_USER_NAME = "USER_NAME";
        public const string CONST_SESSION_DATA = "USER_RELATION_DATA";
    }
}